This article explores the application of XML Schema in AI systems and prompts. XML Schema provides a structured way to describe and validate data, making it an essential tool for AI systems that deal with data. The author discusses how XML Schema can be used to create and manage data in AI applications, such as speech recognition and natural language processing. The article also covers the benefits of using XML Schema in AI systems, including improved data consistency, interoperability, and security. Lastly, the author provides some examples of XML Schema usage in AI systems and discusses the future of XML Schema in AI technology.
- Prompt engineering is about experimenting with changes in prompts to understand their impacts on what large language models (LLMs) generate as the output. Prompt engineering yields better outcomes for LLM use with a few basic techniques
- Zero-shot prompting is when an LLM is given a task, via prompt, for which the model has not previously seen data
- For the language tasks in the literature, performance improves with a few examples, this is known as few-shot prompting
- Chain-of-Thought (CoT) prompting breaks down multi-step problems into intermediate steps allowing LLMs to tackle complex reasoning that can't be solved with zero-shot or few-shot prompting
- Built upon CoT, self-consistency prompting is an advanced prompting technique, that provides the LLM with multiple, diverse reasoning paths and then selects the most consistent answer among the generated responses
Open-source tools for prompt testing and experimentation, with support for both LLMs (e.g. OpenAI, LLaMA) and vector databases (e.g. Chroma, Weaviate, LanceDB).
hat - chat directly, character card is your prompt
instruct- chat between "you" and "assistant" using the model's prompt format
chat-instruct- chat with you and a character card as a prompt but with the instruct template applied. .i.e "you are an AI playing x character, respond as the character would" converted to alpaca, wizard or whatever
There is no best, but for factual information, you probably want to keep to instruct mode. instruct-chat doesn't necessarily play the characters better or make them write longer. It's sort of hit or miss. one may work better than the other for a particular model and prompt.